00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef DEMEMORY_FUNCTIONS_HPP
00029 #define DEMEMORY_FUNCTIONS_HPP
00030
00031 #include "deGlobalTypes.hpp"
00032
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036
00037
00038 typedef void * (*Internal_memccpyFN)(void *Ptr1, const void *Ptr2, const int C, long Len);
00039 typedef void * (*Internal_memchrFN)(const void *Ptr1, const int C, long Len);
00040 typedef long (*Internal_memcmpFN)(const void *Ptr1, const void *Ptr2, long Len);
00041 typedef void * (*Internal_memcpyFN)(void *Ptr1, const void *Ptr2, long Len);
00042 typedef void * (*Internal_memsetFN)(void *Ptr1, int C, long Len);
00043 typedef long (*Internal_strcmpFN)(const char *Str1, const char *Str2);
00044 typedef long (*Internal_strlenFN)(const char *Str);
00045
00046
00047 typedef struct geMem_InternalFunctions
00048 {
00049 Internal_memccpyFN MemCCpy;
00050 Internal_memchrFN MemChr;
00051 Internal_memcmpFN MemCmp;
00052 Internal_memcpyFN MemCpy;
00053 Internal_memsetFN MemSet;
00054 Internal_strcmpFN StrCmp;
00055 Internal_strlenFN StrLen;
00056 } geMem_InternalFunctions;
00057
00058
00059 deBoolean InitializeInternalFunctions();
00060 void ReleaseInternalFunctions();
00061
00062
00063 extern geMem_InternalFunctions *InternalFunctions;
00064
00065
00066
00067
00068
00069 void * Internal_ASM_memccpy(void *Ptr1, const void *Ptr2, const int C, long Len);
00070 void * Internal_ASM_memchr(const void *Ptr1, const int C, long Len);
00071 long Internal_ASM_memcmp(const void *Ptr1, const void *Ptr2, long Len);
00072 void * Internal_ASM_memcpy(void *Ptr1, const void *Ptr2, long Len);
00073 void * Internal_ASM_memset(void *Ptr1, int C, long Len);
00074 long Internal_ASM_strcmp(const char *Str1, const char *Str2);
00075 long Internal_ASM_strlen(const char *Str);
00076
00077
00078 void * Internal_ASM_MMX_memcpy(void *Ptr1, const void *Ptr2, long Len);
00079 void * Internal_ASM_MMX_memset(void *Ptr1, int C, long Len);
00080
00081
00082 void * Internal_ASM_AMD_MMX_memcpy(void *Ptr1, const void *Ptr2, long Len);
00083
00084 #ifdef __cplusplus
00085 }
00086 #endif
00087
00088 #endif